import type { RouteRecordRaw } from 'vue-router'

import Layout from '@/layouts/index.vue'

export default [
  {
    path: '/ticket',
    name: 'ticket',
    component: Layout,
    redirect: '/ticket/list',
    meta: {
      title: {
        zh_CN: '票务',
        en_US: 'Ticket',
      },
      icon: 'ticket',
      orderNo: 2,
    },
    children: [
      {
        path: 'content',
        name: 'TicketContent',
        meta: { title: { zh_CN: '内容', en_US: 'Ticket Content' } },
        component: () => import('@/pages/ticket/content/index.vue'),
      },
      {
        path: 'list',
        name: 'TicketList',
        meta: { title: { zh_CN: '票类', en_US: 'Ticket List' } },
        component: () => import('@/pages/ticket/list/index.vue'),
      },
    ],
  },
] satisfies RouteRecordRaw[]
